package com.fastloan.mgt.jx.model.dto;


import com.kawins.base.baseabs.BaseModel;
import com.kawins.spring.valid.annotation.IDCard;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.StringJoiner;

/**
 * 极鲜预授信请求dto
 *
 * @author chenkai
 * createTime 2018-01-2018/1/5 9:31
 */
public class JxCreditDTO extends BaseModel<String> {
    /**
     * 用户名
     */

    private String name;

    /**
     * 登录名
     */
    private String user_id;

    /**
     * 手机号
     */

    private String phone;

    /**
     * 身份证号码
     */
    private String card_id;

    /**
     * 银行卡号码
     */

    private String bank_id;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 国家ID
     */

    private String country_id;

    /**
     * 用户类型
     */

    private String customer_type;

    /**
     * 账户资金
     */

    private BigDecimal account_capital;

    /**
     * 是否是国外店铺
     */

    private Boolean overseas;

    /**
     * 店铺总销量
     */

    private String store_sales;

    /**
     * 店铺资质
     */

    private String store_qualifications;

    /**
     * 店铺资金
     */

    private BigDecimal store_capital;

    /**
     * 订单历史流水
     */

    private String order_history;

    /**
     * 注册年限
     */

    private Integer years;

    /**
     * 客户评级信息
     */

    private String evaluation;

    /**
     * 送货地址
     */

    private String address;

    /**
     * 店铺简介
     */

    private String store_info;

    /**
     * 以往订单信息
     */

    private String order_history_in;

    /**
     * 商户编号
     */
    @NotNull
    private String agent_id;

    /**
     * 流水号（唯一），用来标识本笔请求
     */
    @NotNull
    private String agent_order_id;

    /**
     * 跳入对方url
     */
    @NotNull
    private String comeback_url;

    private String loan_url;

    public String getLoan_url() {
        return loan_url;
    }

    public void setLoan_url(String loan_url) {
        this.loan_url = loan_url;
    }

    public String getComeback_url() {
        return comeback_url;
    }

    public void setComeback_url(String comeback_url) {
        this.comeback_url = comeback_url;
    }

    public String getAgent_order_id() {
        return agent_order_id;
    }

    public void setAgent_order_id(String agent_order_id) {
        this.agent_order_id = agent_order_id;
    }

    public String getAgent_id() {
        return agent_id;
    }

    public void setAgent_id(String agent_id) {
        this.agent_id = agent_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCard_id() {
        return card_id;
    }

    public void setCard_id(String card_id) {
        this.card_id = card_id;
    }

    public String getBank_id() {
        return bank_id;
    }

    public void setBank_id(String bank_id) {
        this.bank_id = bank_id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getCountry_id() {
        return country_id;
    }

    public void setCountry_id(String country_id) {
        this.country_id = country_id;
    }

    public String getCustomer_type() {
        return customer_type;
    }

    public void setCustomer_type(String customer_type) {
        this.customer_type = customer_type;
    }


    public Boolean getOverseas() {
        return overseas;
    }

    public void setOverseas(Boolean overseas) {
        this.overseas = overseas;
    }

    public String getStore_sales() {
        return store_sales;
    }

    public void setStore_sales(String store_sales) {
        this.store_sales = store_sales;
    }

    public String getStore_qualifications() {
        return store_qualifications;
    }

    public void setStore_qualifications(String store_qualifications) {
        this.store_qualifications = store_qualifications;
    }

    public BigDecimal getAccount_capital() {
        return account_capital;
    }

    public void setAccount_capital(BigDecimal account_capital) {
        this.account_capital = account_capital;
    }

    public BigDecimal getStore_capital() {
        return store_capital;
    }

    public void setStore_capital(BigDecimal store_capital) {
        this.store_capital = store_capital;
    }

    public String getOrder_history() {
        return order_history;
    }

    public void setOrder_history(String order_history) {
        this.order_history = order_history;
    }

    public Integer getYears() {
        return years;
    }

    public void setYears(Integer years) {
        this.years = years;
    }

    public String getEvaluation() {
        return evaluation;
    }

    public void setEvaluation(String evaluation) {
        this.evaluation = evaluation;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getStore_info() {
        return store_info;
    }

    public void setStore_info(String store_info) {
        this.store_info = store_info;
    }

    public String getOrder_history_in() {
        return order_history_in;
    }

    public void setOrder_history_in(String order_history_in) {
        this.order_history_in = order_history_in;
    }


    @Override
    public String toString() {
        return new StringJoiner(", ", this.getClass().getSimpleName() + "[", "]")
                .add("account_capital = " + account_capital)
                .add("address = " + address)
                .add("agent_id = " + agent_id)
                .add("agent_order_id = " + agent_order_id)
                .add("bank_id = " + bank_id)
                .add("card_id = " + card_id)
                .add("country_id = " + country_id)
                .add("customer_type = " + customer_type)
                .add("email = " + email)
                .add("evaluation = " + evaluation)
                .add("name = " + name)
                .add("order_history = " + order_history)
                .add("order_history_in = " + order_history_in)
                .add("overseas = " + overseas)
                .add("phone = " + phone)
                .add("store_capital = " + store_capital)
                .add("store_info = " + store_info)
                .add("store_qualifications = " + store_qualifications)
                .add("store_sales = " + store_sales)
                .add("user_id = " + user_id)
                .add("years = " + years)
                .toString();
    }
}
